<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<TITLE>Untitled Page</TITLE>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<META content="MSHTML 6.00.2900.5848" name=GENERATOR>
		<link href="../css/public.css" rel="stylesheet" style="text/css">
	</HEAD>
	<BODY
		style="BACKGROUND-POSITION-Y: -120px; BACKGROUND-IMAGE: url(../images/background.gif); BACKGROUND-REPEAT: repeat-x">
		<SCRIPT type=text/javascript>
			var theForm = document.forms['aspnetForm'];
			if (!theForm) {
			    theForm = document.aspnetForm;
			}
			function __doPostBack(eventTarget, eventArgument) {
			    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
			        theForm.__EVENTTARGET.value = eventTarget;
			        theForm.__EVENTARGUMENT.value = eventArgument;
			        theForm.submit();
			    }
			}
			function turnpage(){
				var curPage=document.getElementById("page").value;
				if(isNaN(curPage)){
				window.location.href="library_findOrder?pb.pageon="+1;
				}
				else{
				window.location.href="library_findOrder?pb.pageon="+curPage;
                 }
			}
</SCRIPT>
		<SCRIPT src="EmployeeMgr.files/WebResource.axd" type=text/javascript></SCRIPT>
		<SCRIPT src="EmployeeMgr.files/ScriptResource.axd"
			type=text/javascript></SCRIPT>
		<SCRIPT src="/EmployeeMgr.files/ScriptResource(1).axd"
			type=text/javascript></SCRIPT>
		<DIV>
			<TABLE height="100%" cellSpacing=0 cellPadding=0 width="150%" border=0>
				<TBODY>
					<TR
						style="BACKGROUND-IMAGE: url(../images/bg_header.gif); BACKGROUND-REPEAT: repeat-x"
						height=47>
						<TD width=10>
							<SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px">
							</SPAN>
						</TD>
						<TD>
							<SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hl2.gif); WIDTH: 15px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px">
							</SPAN>
							<SPAN
								style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hb.gif); PADDING-BOTTOM: 10px; COLOR: white; PADDING-TOP: 10px; BACKGROUND-REPEAT: repeat-x; HEIGHT: 47px; TEXT-ALIGN: center; 0 px: ">
								制订货单</SPAN><SPAN
								style="FLOAT: left; BACKGROUND-IMAGE: url(../images/main_hr.gif); WIDTH: 60px; BACKGROUND-REPEAT: no-repeat; HEIGHT: 47px"></SPAN>
						</TD>
						<TD
							style="BACKGROUND-POSITION: 50% bottom; BACKGROUND-IMAGE: url(../images/main_rc.gif)"
							width=10></TD>
					</TR>
					<TR>
						<TD style="BACKGROUND-IMAGE: url(../images/main_ls.gif)">
							&nbsp;
						</TD>
						<TD
							style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-BOTTOM: 10px; COLOR: #566984; PADDING-TOP: 10px; BACKGROUND-COLOR: white"
							vAlign=top align="center">
							<DIV>
								<TABLE class=gridView id=ctl00_ContentPlaceHolder2_GridView1
									style="WIDTH: 100%; BORDER-COLLAPSE: collapse" cellSpacing=0
									rules=all border=1 >
									<TBODY>
									<form action="library_findOrder.action" method="post">
									 订单模糊查询：<input type="text" name="orderSn" value="${orderSn }"/><input type="submit" value="查询">
									</form>
										<TR>
											<TH class=gridViewHeader style="WIDTH: 50px" scope=col>
												&nbsp;
											</TH>
											<TH class=gridViewHeader scope=col>订货单编号</TH>
											<TH class=gridViewHeader scope=col>订货人</TH>
											<TH class=gridViewHeader scope=col>公司名称</TH>
											<TH class=gridViewHeader scope=col>下单人</TH>
											<TH class=gridviewHeader scope=col>付款方式</TH>
											<TH class=gridviewHeader scope=col>运输方式</TH>
											<TH class=gridViewHeader scope=col>项数</TH>		
											<TH class=gridviewHeader scope=col>操作</TH>
										</TR>
										<s:iterator value="pb.list">
											<TR>
												<TD class=gridViewItem style="WIDTH: 50px"><IMG src="EmployeeMgr.files/bg_users.gif"></TD>
												<TD class=gridViewItem><s:property value="sn" /></TD>
												<TD class=gridViewItem><s:property value="user.name" /></TD>
												<TD class=gridViewItem><s:property value="user.enterprise.name" /></TD>
												<TD class=gridViewItem><s:property value="staff.name" /></TD>
												<TD class=gridViewItem><s:property value="payment" /></TD>
												<TD class=gridViewItem><s:property value="transport" /></TD>
												<TD class=gridViewItem><s:property value="orderlists.size" /></TD>
												<TD class=gridViewItem>
													<A class=cmdField
														href="library_findOrderById?order.id=<s:property value="id" />">选择</A>
												</TD>
											</TR>
										</s:iterator>
									</TBODY>
									 <TR>
									    <TD colspan="23" align="right" class=gridViewHeader>
									    	总共有<s:property value="pb.totalitem"/>条记录
									    	每页<s:property value="pb.pagesize"/>条记录
									    	当前为第<s:property value="pb.pageon"/>页/
									    	总共有<s:property value="pb.totalpage"/>页
									    	<a class="a_a" href="library_findOrder?pb.pageon=1">第一页</a>
									    	<a class="a_a" href="library_findOrder?pb.pageon=<s:property value="pb.prep"/>">上一页</a>
									    	<a class="a_a" href="library_findOrder?pb.pageon=<s:property value="pb.nextp"/>">下一页</a>
									    	<a class="a_a" href="library_findOrder?pb.pageon=<s:property value="pb.totalpage"/>">最后一页</a>
									    	转到第<input type="text" id="page" size="1"/>页<input type="submit" value="Go" onclick="javascript:turnpage();"/>
									   </TD>
								    </TR>	
								</TABLE>
							</DIV>
						</TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_rs.gif)"></TD>
					</TR>
					<TR
						style="BACKGROUND-IMAGE: url(../images/main_fs.gif); BACKGROUND-REPEAT: repeat-x"
						height=10>
						<TD style="BACKGROUND-IMAGE: url(../images/main_lf.gif)"></TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_fs.gif)"></TD>
						<TD style="BACKGROUND-IMAGE: url(../images/main_rf.gif)">
						</TD>
					</TR>	
				</TBODY>
			</TABLE>
		</DIV>
		<SCRIPT type=text/javascript>
			Sys.Application.initialize();
   	   </SCRIPT>
	</BODY>
</HTML>
